﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterALSafa.Master" AutoEventWireup="true"
    CodeBehind="Certificates.aspx.cs" Inherits="School.Pages.Organization.Certificates" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
        الشهادات</h1>
    <table width="100%">
        <tr>
            <td style="width: 74px">
                اسم الشهادة
            </td>
            <td>
                <asp:TextBox ID="TxtName" runat="server" Width="150px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="TxtName" Display="Dynamic" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 74px">
                المجمع
            </td>
            <td>
                <asp:DropDownList ID="LstCampuse" runat="server" AppendDataBoundItems="True" AutoPostBack="True"
                    OnSelectedIndexChanged="LstCampuse_SelectedIndexChanged" Width="153px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ErrorMessage="*" ControlToValidate="LstCampuse" Display="Dynamic" 
                    ForeColor="Red" InitialValue="-1"></asp:RequiredFieldValidator>
                <asp:Label ID="lblcode" runat="server" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 74px">
                كود
            </td>
            <td>
                <asp:TextBox ID="TxtCode" runat="server" Width="150px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="TxtCode" Display="Dynamic" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 74px">
                الوصف
            </td>
            <td>
                <asp:TextBox ID="TxtDescription" runat="server" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="Button1" runat="server" Text="حفظ" OnClick="Button1_Click" 
                    CssClass="graybutton" />
            </td>
        </tr>
    </table>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%"
        CssClass="Grid" HeaderStyle-CssClass="GridHeaderFooter" FooterStyle-CssClass="GridHeaderFooter"
        PagerStyle-CssClass="GridPager" AlternatingRowStyle-CssClass="GridItemAltername">
        <Columns>
            <asp:BoundField DataField="Id" HeaderText="#" />
            <asp:BoundField DataField="Name" HeaderText="الأسم" />
            <asp:BoundField DataField="Description" HeaderText="الوصف" />
            <asp:BoundField DataField="CName" HeaderText="المجمع" />
            <asp:HyperLinkField DataNavigateUrlFields="Id" DataNavigateUrlFormatString="Certificates.aspx?Id={0}"
                Text="تعديل" />
        </Columns>
    </asp:GridView>
</asp:Content>
